Skip to content

Deprecate build_rmd()#2675

Merged
jennybc merged 1 commit intomainfrom
start-to-de-export-build-rmd
Feb 26, 2026
Merged

Deprecate build_rmd()#2675
jennybc merged 1 commit intomainfrom
start-to-de-export-build-rmd

Conversation

@jennybc
Copy link
Member

@jennybc jennybc commented Feb 26, 2026

Closes #2510

Acting on this comment specifically: #2510 (comment)

(This also strangely unblocks me re: the changes in devtools and usethis to support README.qmd. By marking build_rmd() as "for internal use only", it frees me from having to implement an exported build_qmd(), for "symmetry". We just need build_readme() to work and the implementation is an internal matter.)

Tagging you @hadley mostly as an FYI.

@jennybc jennybc requested a review from hadley February 26, 2026 17:53
@@ -1,22 +1,46 @@
#' Build a Rmarkdown files package
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤪 this never made sense


for (path in paths) {
cli::cli_inform(c(i = "Building {.path {path}}"))
if (!quiet) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR but discovered while tinkering with tests.

Comment on lines +239 to +243
if (!quiet) {
cli::cli_inform(c(
i = "Installing {.pkg {pkg$package}} in temporary library"
))
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR but discovered while tinkering with tests.


pkg <- local_package_create()
suppressMessages(usethis::with_project(pkg, use_readme_rmd()))
usethis::ui_silence(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated upkeep: just using a more specific mechanism for silencing in this file.

@jennybc jennybc merged commit 6a65ffb into main Feb 26, 2026
12 checks passed
@jennybc jennybc deleted the start-to-de-export-build-rmd branch February 26, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build_rmd() fails with some output format

2 participants